<h1>Edytujesz opis punktu</h1>
<form method="post">
	<input type="hidden" name="confirmAdd" value="1" />
	<input type="hidden" id="infox" name="x" value="{$map->getX()}" />
	<input type="hidden" id="infoy" name="y" value="{$map->getY()}" />
	<input type="hidden" name="w" value="{$map->getW()}" />
	<input type="hidden" name="h" value="{$map->getH()}" />
{mainoptions title="Dodaj opis"}

	<table cellspacing="0" cellpadding="0" border="0" class="commonTable" >
		<tr>
			<th>Obraz:</th>
			<td >
				<div id="ptsarea" style="background: url({$urlStatic}/{image w=800 src=$obj->getMainImage()}) no-repeat {math equation="-x+200" x=$map->getX()}px {math equation="-x+100" x=$map->getY()}px; height: 200px; width: 400px; border: 1px solid black;">
					<div id="ptsareaOL" style="background: url({$urlStatic}/image/Admin/viewfinder.png) no-repeat center center; width: 400px; height: 200px;"></div>
				</div>
			</td>
		</tr>
		<tr>
			<th>Aktywny:</th>
			<td>
				<input type="radio" {if $map->getActive()}checked="checked"{/if} value="1" id="active_1" name="active" /><label for="active_1">tak</label>
				<input type="radio" {if !$map->getActive()}checked="checked"{/if} value="1" id="active_0"  name="active"  /><label for="active_0">nie</label>
			</td>
		</tr>
	</table>

{/mainoptions}
{mainoptions title="Dane dla poszczególnych wersji językowych"}
	{assign var=class value=colapse}
	{foreach from=$languages item=lang}
	{assign var=description value=$map->getDescription($lang->getid())}
	{capture assign=title}Dane języka: {$lang->getName()}{/capture}
	{mainoptions title=$title class=$class}
	<table cellpadding="0" cellspacing="0" width="100%" class="commonTable">
		<tr>
			<th>Nazwa</th>
			<td><input type="text" class="{if !isset($required)}required{/if}" name="title[{$lang->getId()}]" value="{$description->getTitle()|saveInput}" /></td>
		</tr>
		<tr>
			<th>Opis</th>
			<td>{capture assign=desc}description_{$lang->getId()}{/capture}{insertFckEditor name=$desc value=$description->getDescription()}</td>
		</tr>
	</table>
	{/mainoptions}
	{assign var=class value=expand}
	{assign var=required value=1}
	{/foreach}
{/mainoptions}
{mainoptions}
	<input type="submit" value="Zapisz" />
	<input type="button" value="Anuluj" onclick="window.location='{url product=infopts id=$obj->getId()}'" />
{/mainoptions}
	</form>